class Myqueue:
    def __init__(self,Maxsize):
        self.size = Maxsize
        self.data = []
        self.current = 0

    def empty(self):
        if self.current == 0:
            return True
        else :
            return False

    def full(self):
        if self.current == self.size:
            return True
        else:
            return False

    def gethead(self):
        if self.empty():
            print("the queue is empty")
            return
        else :
            return self.data[0]

    def add(self,e):
        if self.full() :
            print("the queue is full")
        else:
            self.data.append(e)
            self.current += 1


    def pop(self):
        if self.empty():
            print("the queue is empty")
        else :
            self.current -= 1
            return self.data.pop(0)

test = Myqueue(6)
print(test.empty())
test.add(1)
test.add(4)
test.add(5)
test.add(1)
test.add(4)
test.add(1)
test.add(4)
print(test.full())
print(test.gethead())











